from flask import Blueprint,jsonify
from .models import *
"""
此文件用于存放路由和视图函数
"""


api = Blueprint('api',__name__)

@api.route('/getall')
def getallAPI():
    print(getall())
    return jsonify(getall())

@api.route('/getReceptionOfTourists')
def getReceptionOfTouristsAPI():
    print(getReceptionOfTourists())
    return jsonify(getReceptionOfTourists())
